package util;

import sort.Sort;

import java.util.Random;

/**
 * Created by zk on 2016/1/14.
 */
public class SortUtil {
    public void sortRun(Sort sort) {
        int[] nums = new int[10];
        int len = nums.length;
        Random random = new Random();
        for (int i = 0; i <len; i++) {
            nums[i] = random.nextInt(100);
        }
        for (int num : nums) {
            System.out.print(Integer.toString(num) + " ");
        }
        System.out.print("\n");
        sort.doSort(nums);
        for (int num : nums) {
            System.out.print(Integer.toString(num) + " ");
        }
    }
}
